package com.bwie.vo;

import lombok.Data;
import org.apache.poi.ss.formula.functions.Na;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
@Data
public class LoginFromVo implements Serializable {
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$",message = "手机号格式不正确")
    private String userMobile;
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{3,10}$",message = "密码必须使用大小写字母，数字，长度必须在3-10位")
    private String userPass;
}
